home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Audio dcmds
/
Audio CD dcmds.sit
/
Audio CD dcmds.π
/
Think Put Lib source
/
PutTextTo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-31
|
412b
|
22 lines
extern unsigned char __putBuffer[256];
extern short __putMark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutTextTo(const char* s, int len, int endpos)
{
int i;
if ( endpos > __putMark )
{
for ( i=0; i<len && __putMark<endpos; i++ )
PutChar( s[i] );
if ( i < len )
__putBuffer[__putMark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}